package com.hp.webchat.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.hp.webchat.service.IHelloService;

@Controller
@RequestMapping("/hello")
public class HelloController {
    @Autowired
    IHelloService helloService;
    
    @RequestMapping("chinese")
    public String speakChinese(HttpServletRequest request,ModelMap model){
	model.addAttribute("hello",helloService.getHelloWord());
	return "hello/index";
    }
}
